package config

type DatabaseConfig struct {
	Host         string
	Port         int
	User         string
	Password     string
	DatabaseName string
	MaxIdleConns int
	MaxOpenConns int
}

type RedisConfig struct {
	Host string
	Port string
	DB   int
	Pwd  string
}

type OauthConfig struct {
	AccessTokenLifetime  int64
	RefreshTokenLifetime int64
	PosTokenLifetime     int64
}

// SessionConfig stores session configuration for the web app
type SessionConfig struct {
	Key      string
	Secret   string
	LifeTime int // in seconds
}

type HTTPConfig struct {
	Host        string
	Port        string
	Address     string
	TemplateDir string
	StaticDir   string
}

type RPCConfig struct {
	Host string
	Port string
}

type EmailConfig struct {
	SMTPHost string
	SMTPPort int
	Account  string
	Pwd      string
}

type OuterServiceConfig struct {
	MetadataAddr string
}

type PassWdRuleConfig struct {
	Enable 		bool
}
